<?php
class Vakanz_Category extends General_Db_Table_Row  {
	
	public function getChildren($select = null, $level = 1) {
		if ($select == null) {
			$select = $this->getTable()->select();
		}
		$select	->where('celko_level = ?', $this->celko_level + $level)
				->where('celko_left > ?' , $this->celko_left)
				->where('celko_right < ?' , $this->celko_right);
		return $this->getTable()->fetchAll($select);
	}
	
	
}
?>